from common import *

import os

default_data = 'InteractivePoison'

def setup(data = default_data):
    dlg = wx.TextEntryDialog(None, 'Title: ', 'Configure Process', data)        
    if dlg.ShowModal() == wx.ID_OK:
        data = dlg.GetValue()
    dlg.Destroy()
    return data


def InteractivePoisonFunc(out0, data = default_data):
    os.popen('extensions/actions/messagebox.py "Poison?" "'+data+'"')
    poison(out0)
